package edu.ads.bookloan

class Degree {
	String name
	
	static belongsTo = [Book]
	static hasMany = [books: Book,persons: Person]
	
    static constraints = {
		name blank: false, maxSize: 150
    }
	
	String toString(){
		name
	}
}
